<?php

namespace App\Models;

use Encore\Admin\Traits\ModelTree;
use Illuminate\Database\Eloquent\Model;

class JxtCategory extends Model
{
    use ModelTree;

    protected $table = 'jxt_categories';

    protected function serializeDate(\DateTimeInterface $date): string
    {
        return $date->format('Y-m-d H:i:s');
    }

    protected $guarded = [
        'id',
        'created_at',
        'updated_at'
    ];
}
